<template>
    <div>
        <h3>您点击的商品是{{ value }}</h3>
        <div class="big_box">
            <bottomassembly_content :titleval="titleval" @cli="clicks"></bottomassembly_content>
        </div>
    </div>
</template>

<script>
import bottomassembly_content from './bottomassembly_content.vue'
export default {
    props: ['titleval'],
    data() {
        return {
            value:this.titleval
        }
    },
    methods: {
        clicks(val) {
            this.value = val;
        }
    },
    components: {
        bottomassembly_content
    }
}
</script>

<style scoped>
h3{
    text-align: center;
}
</style>